package com.ruoyi.evalution.domain;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.labdata.domain.LabFile;

/**
 * 评试对象对象 lab_evalution_target
 * 
 * @author winner pan
 * @date 2022-04-18
 */
public class LabEvalutionTarget extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 评测对象ID */
	private Long participatorId;

	/** 评测编号 */
	@Excel(name = "评测编号")
	private Long evalutionId;

	/** 参与用户 */
	@Excel(name = "参与用户")
	private String userName;

	/** 领导评分 */
	@Excel(name = "领导评分")
	private BigDecimal leaderScore;

	/** 对象姓名 */
	@Excel(name = "对象姓名")
	private String nickName;

	/** 同事评分 */
	@Excel(name = "同事评分")
	private BigDecimal colleagueScore;

	/** 学生评分 */
	@Excel(name = "学生评分")
	private BigDecimal studentScore;
	
	private Long evalutionResultId;
	

	public Long getEvalutionResultId() {
		return evalutionResultId;
	}

	public void setEvalutionResultId(Long evalutionResultId) {
		this.evalutionResultId = evalutionResultId;
	}

	/** 评测分数 */
	@Excel(name = "评测分数")
	private BigDecimal totalScore;
	
	private BigDecimal score;
	
	private String markscoreUser;
	
	 public String getMarkscoreUser() {
		return markscoreUser;
	}

	public void setMarkscoreUser(String markscoreUser) {
		this.markscoreUser = markscoreUser;
	}

	/**
     * 思想政治得分.
     * **/
    private BigDecimal politicsScore;
    /**
     * 工作态度得分.
     * **/
    private BigDecimal attitudeScore;
    /**
     * 履职得分.
     * **/
    private BigDecimal dutiesScore;
    
    public BigDecimal getTotalMarkScore(){
    	BigDecimal total = new BigDecimal(0);
    	if(politicsScore!=null){
    		total = total.add(politicsScore);
    	}
    	if(attitudeScore!=null){
    		total = total.add(attitudeScore);
    	}
    	if(dutiesScore!=null){
    		total = total.add(dutiesScore);
    	}
    	return total;
    }
    
    

	public BigDecimal getPoliticsScore() {
		return politicsScore;
	}

	public void setPoliticsScore(BigDecimal politicsScore) {
		this.politicsScore = politicsScore;
	}

	public BigDecimal getAttitudeScore() {
		return attitudeScore;
	}

	public void setAttitudeScore(BigDecimal attitudeScore) {
		this.attitudeScore = attitudeScore;
	}

	public BigDecimal getDutiesScore() {
		return dutiesScore;
	}

	public void setDutiesScore(BigDecimal dutiesScore) {
		this.dutiesScore = dutiesScore;
	}

	private String evalutionName;

	private String targetName;

	public String getEvalutionName() {
		return evalutionName;
	}

	public void setEvalutionName(String evalutionName) {
		this.evalutionName = evalutionName;
	}

	public String getTargetName() {
		return targetName;
	}

	public void setTargetName(String targetName) {
		this.targetName = targetName;
	}

	public BigDecimal getScore() {
		return score;
	}

	public void setScore(BigDecimal score) {
		this.score = score;
	}

	private String relation;
	
	
	public String getRelation() {
		return relation;
	}

	public void setRelation(String relation) {
		this.relation = relation;
	}

	private String deptName;
	
	private Long deptId;
	private List<LabFile> images;
	

	public List<LabFile> getImages() {
		return images;
	}

	public void setImages(List<LabFile> images) {
		this.images = images;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public Long getDeptId() {
		return deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	/** 述职报告ID */
	private Long reportFileId;

	public void setParticipatorId(Long participatorId) {
		this.participatorId = participatorId;
	}

	public Long getParticipatorId() {
		return participatorId;
	}

	public void setEvalutionId(Long evalutionId) {
		this.evalutionId = evalutionId;
	}

	public Long getEvalutionId() {
		return evalutionId;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserName() {
		return userName;
	}

	public void setLeaderScore(BigDecimal leaderScore) {
		this.leaderScore = leaderScore;
	}

	public BigDecimal getLeaderScore() {
		return leaderScore;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getNickName() {
		return nickName;
	}

	public void setColleagueScore(BigDecimal colleagueScore) {
		this.colleagueScore = colleagueScore;
	}

	public BigDecimal getColleagueScore() {
		return colleagueScore;
	}

	public void setStudentScore(BigDecimal studentScore) {
		this.studentScore = studentScore;
	}

	public BigDecimal getStudentScore() {
		return studentScore;
	}

	public void setTotalScore(BigDecimal totalScore) {
		this.totalScore = totalScore;
	}

	public BigDecimal getTotalScore() {
		return totalScore;
	}

	public void setReportFileId(Long reportFileId) {
		this.reportFileId = reportFileId;
	}

	public Long getReportFileId() {
		return reportFileId;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("participatorId", getParticipatorId())
				.append("evalutionId", getEvalutionId()).append("userName", getUserName())
				.append("leaderScore", getLeaderScore()).append("nickName", getNickName())
				.append("colleagueScore", getColleagueScore()).append("studentScore", getStudentScore())
				.append("totalScore", getTotalScore()).append("reportFileId", getReportFileId()).toString();
	}
}